package com.lb.uts.client.annotation;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * 定时任务相关属性
 *
 * @author liangb
 * @version 3.0
 * @date 2019/4/29 9:44
 */
@ConfigurationProperties(prefix = "uts.task")
public class UtsTaskProperties {

    public static List<String> basePackage;

    /**
     * 系统名
     */
    private String systemName;

    /**
     * 设置系统权重
     * 默认是1
     * 支持:1-100000
     */
    private int weight = 1;

    /**
     * 分片的最小数据量
     */
    public static int batchMinLimit = 1000;

    /**
     * 调度器注册的Ip
     */
    private String url;

    public String getSystemName() {
        return systemName;
    }

    public void setSystemName(String systemName) {
        this.systemName = systemName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }
}
